<%-- 
    Document   : ajaxloginCancel
    Created on : Jun 13, 2012, 5:28:17 PM
    Author     : hcl
--%>


<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
  <head>
    <s:head theme="ajax" debug="true"/>
  </head>
  <body>
  	<s:div id="nonAjax" theme="simple">
  		<div style="width: 300px;border-style: solid">
  			<s:property value="username"/>
  		</div>
  	</s:div>
    <s:div id="loginDiv" theme="ajax">
    <div style="width: 500px;border-style: solid">
      <s:form action="ajaxloginCancel"  validate="true">
        <tr>
          <td colspan="2">
            Login
          </td>
        </tr>
        <tr>
          <td colspan="2">
            <s:actionerror />
            <s:fielderror />
          </td>
          </tr>
          <s:textfield name="username" label="Login name"/>
          <s:password name="password" label="Password"/>
          <s:submit value="Submit without ajax" action="ajaxloginCancel"></s:submit>
          <s:submit value="Submit" theme="ajax" targets="loginDiv" action="ajaxloginCancel"/>
      </s:form>
      <s:textarea name="text" label="Paste your text here" theme="ajax" cssStyle="background-color: #FCFCFC; border: 1px solid #A0A0A0; min-height:500px; max-height:inherit; "/>
    </div>
    <s:property value="username"/>
    </s:div>
  </body>
</html>
